<?php

/**
* Gavick News Image V
* @package Joomla!
* @Copyright (C) 2008 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 1.0 $
**/


/**
	access restriction
**/

defined('_JEXEC') or die('Restricted access');

// include helper file
require_once (dirname(__FILE__).DS.'helper.php');
// creating new instance of helper class
$helper = new gkNewsImage5Helper();
// initialize module variables
$error = $helper->initialize($params);
// if module variables are ok - go to the next step
if($error === false)
{
	// getting module data
	$error = $helper->getDatas();
	// if module data are ok - go to the next step
	if($error === false)
	{
		// generate module content
		$helper->generateContent();	
	}
	else // else - show error information
	{
		$helper->error($error);
	}
}
else // else - show error information
{
	$helper->error($error);
}

?>